import request from "@/utils/request";

// 查询布绑列表
export function listStraps(query) {
  return request({
    url: "/md/straps/list",
    method: "get",
    params: query,
  });
}

// 查询布绑详细
export function getStraps(orderCustomCurtainStrapsId) {
  return request({
    url: "/md/straps/" + orderCustomCurtainStrapsId,
    method: "get",
  });
}

// 新增布绑
export function addStraps(data) {
  return request({
    url: "/md/straps",
    method: "post",
    data: data,
  });
}

// 修改布绑
export function updateStraps(data) {
  return request({
    url: "/md/straps",
    method: "put",
    data: data,
  });
}

// 删除布绑
export function delStraps(orderCustomCurtainStrapsId) {
  return request({
    url: "/md/straps/" + orderCustomCurtainStrapsId,
    method: "delete",
  });
}
